﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// PageBase 的摘要说明
/// </summary>
public class PageBase:System.Web.UI.Page
{
    public PageBase()
    {
        //
        // TODO: 在此处添加构造函数逻辑
        //
    }
    public Maticsoft.Model.userinfo loginUser = null;

    protected override void OnInit(EventArgs e)
    {
        loginUser = base.Session["loginUser"] as Maticsoft.Model.userinfo;
        if(loginUser == null)
        {
            Response.Write("<script>top.location.href=\"login.html\"</script>");
            Response.End();
        }
    }
}